package cn.tedu._02article.pojo.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Pattern;
import lombok.Data;

@Data
public class UserArticleParam {
    @Schema(description = "文章标题", required = true)
    @Pattern(regexp = "^\\S+$", message = "标题不能为空白")
    private String title;


    @Schema(description = "文章内容", required = true)
    @Pattern(regexp = "^.{10,500}$", message = "内容长度为10-500")
    private String content;
}
